<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>欢迎莅临 z.En的blog</title>
<link href="/templates/dialog/storage/css/default.css" rel="stylesheet" type="text/css" />
<style>
.login_box{
	float:left;
	border:2px solid #ccc;
	width:165px;
	height:auto;
	padding:20px;
	}
.txt_input{
	width:250px;
	border:1px solid #bbb;
	padding:2px;
	}
</style>
<script type="text/javascript" src="/templates/dialog/storage/js/common.js"></script>


</head>
<body>

<?php include('head.php') ?>




<div class="body">

<div class="left">

	<?php
	$i = 0;
		foreach ($__ITEMS['topics'] as $topic):
	?>
	<div style="background:<?php echo ($i%2==1?"#fafafa":"#ffffff") ?>">
		<span style="color:#eee;font-size:50px;line-height:60px;"><?php echo date('Y-m-d',$topic['blog_topic_add_time']),'#',$topic['blog_topic_tid'] ?></span>
		<br />
		<strong><span style="font-size:30px;line-height:60px;"><?php echo $topic['blog_topic_title'] ?></span></strong>
		<br /><br />
		<span><?php echo nl2br($topic['blog_topic_body']) ?></span>
		<br /><br />
		<span>[<?php echo date('Y-m-d H:i:s',$topic['blog_topic_add_time']) ?>]&nbsp;tag:<?php
		foreach ($topic['tags'] as $v){
			echo '&nbsp;','<a href="/blog.php?tag=',urlencode($v['blog_tag_word']),'">',$v['blog_tag_word'],'</a>';
		}
		?></span>
	</div>
	<br />
	<hr size="1" />
	<?php
		$i++;
		endforeach;
	?>
	
	<?php echo $__ITEMS['nava_str'] ?>
</div>

<div class="right">
<?php echo $__ITEMS['my_info'] ?>
<hr />
最近留言:<br />
<?php
	foreach ($__ITEMS['msg_last'] as $v){
		
		$web = strtolower(substr($v['blog_reply_web'],0,7))!='http://'?'http://'.$v['blog_reply_web']:$v['blog_reply_web'];
		$web_str = empty($v['blog_reply_web'])?'':"<a href=\"{$web}\">";
		$name =  $v['blog_reply_name']==''?'匿名留言':$v['blog_reply_name'];
		
		if (empty($web_str)) {
			echo '<strong>',$name,'</strong>';
		}else{
			echo '<strong>',$web_str,$name,'</a></strong>';
		}
//		if (!empty($v['blog_reply_email'])) {
//			echo '(Email:', str_replace('@','#',$v['blog_reply_email']),')';
//		}
		
		echo '<br />',$v['blog_reply_body'],'<br /><br />';
	}

?>
</div>

</div>


<?php include('foot.php') ?>

</body>
</html>
